// The list of proto's. The list is ordered alphabetically.
// The list.
- protoslist;
// Return the proto whose typename is name.
- protoforname:(char *)name;
/*
Return the position in the list of the proto with typename name.
If no proto has that name, return the position at which a new entry with that name should go.
*/
- (int)findposinlist:(char *)typename;
// The proto at position pos.
- protoatpos:(int)pos;
/*
If a proto with the name typename as proto is already in the list, replace that entry (destroying the old entry), otherwise add a new entry.
Return the position of the added/modified entry.
The interface is not updated: have to avoid the interface in this routine since the list is loaded and accessed on startup, and the interface is not loaded until it is required.
*/
- (int)addtolist:proto;
// Remove the proto with typename name and update the interface.